package com.ruoyi.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.entity.Project;
import com.ruoyi.common.entity.dto.ProjectDetailDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface ProjectService extends IService<Project> {
    ProjectDetailDTO getProjectDetail(Long id);
    //批量插入project
    void insertSpiderProjects(@Param("projectList") List<Project> projectList);

    String getProjectByIdBaidu(Long id);

    boolean deleteProject(Long id);

    boolean updateProject(Project project);

    boolean addProject(Project project);

    Project getProjectById(Long id);

    IPage<Project> listProjects(Page<Project> page, Map<String, Object> query);
    // 可以在这里定义自定义的业务方法
}
